From 40727faf6ab82bb54ae3b898e13d6679ef54fbcf Mon Sep 17 00:00:00 2001 From: "kfraser@localhost.localdomain" Date: Wed, 6 Jun 2007 20:25:58 +0100 Subject: [PATCH] qemu: Fix vnc port offset in xenstore The new version of qemu uses 5900 instead of 0 as the port. There is no need to offset it by 5900 when writing out the console/vnc-port entry. Signed-off-by: Ben Guthro --- tools/ioemu/xenstore.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/ioemu/xenstore.c b/tools/ioemu/xenstore.c index c3ee11b19c..ddadcb6a0f 100644 --- a/tools/ioemu/xenstore.c +++ b/tools/ioemu/xenstore.c @@ -367,7 +367,7 @@ void xenstore_write_vncport(int display) if (pasprintf(&buf, "%s/console/vnc-port", path) == -1) goto out; - if (pasprintf(&portstr, "%d", 5900 + display) == -1) + if (pasprintf(&portstr, "%d", display) == -1) goto out; if (xs_write(xsh, XBT_NULL, buf, portstr, strlen(portstr)) == 0) -- 2.30.2